package com.sgcc.electricjournal.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 封装查询条件
 */
public class QueryPageBean implements Serializable {
    private Integer currentPage;//页码
    private Integer pageSize;//每页记录数
    private String queryString;//查询条件
    private Date startTime;//开始时间
    private Date endTime;//结束时间
    private Integer relCurrentPage;//实际sql中的页码

    private String stationName;//厂站
    private String type;//分类:  1异常缺陷   2计划检修  3临时检修
    private String status;//状态: 0删除  1未完成   2已完成

    private List<String> journalIdList;

    public QueryPageBean() {
    }

    public QueryPageBean(Integer currentPage, Integer pageSize, String queryString, Date startTime, Date endTime, Integer relCurrentPage, String stationName, String type, String status, List<String> journalIdList) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.queryString = queryString;
        this.startTime = startTime;
        this.endTime = endTime;
        this.relCurrentPage = relCurrentPage;
        this.stationName = stationName;
        this.type = type;
        this.status = status;
        this.journalIdList = journalIdList;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getQueryString() {
        return queryString;
    }

    public void setQueryString(String queryString) {
        this.queryString = queryString;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getRelCurrentPage() {
        return relCurrentPage;
    }

    public void setRelCurrentPage(Integer currentPage) {
        this.relCurrentPage = (currentPage-1)*this.pageSize;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<String> getJournalIdList() {
        return journalIdList;
    }

    public void setJournalIdList(List<String> journalIdList) {
        this.journalIdList = journalIdList;
    }
}